<%= form_for(@rap) do |f| %>
  <% if @rap.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@rap.errors.count, "error") %> prohibited this rap from being saved:</h2>

      <ul>
      <% @rap.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label "标题" %><br />
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label "原因" %><br />
    <%= f.text_area :reason %>
  </div>
  <div class="field">
    <%= f.label "相关学生" %><br />
    <%= f.text_area :people %>
  </div>
  <div class="field">
    <%= f.label "发生时间" %><br />
    <%= f.datetime_select :ctime %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
